
CPPUNITLITE3_NS_BEGIN;

class Environment 
{
public:
    // The d'tor is virtual as we need to subclass Environment.
    virtual ~Environment() {}

    // Override this to define how to set up the environment.
    virtual void globalSetUp(TestResult* result) {}

    // Override this to define how to tear down the environment.
    virtual void globalTearDown(TestResult* result) {}
};

inline Environment* AddGlobalTestEnvironment(Environment* env) 
{
    if(NULL == env)
    {
        return NULL;
    }

    Test::addEnvironment(env);
    return env;
}

CPPUNITLITE3_NS_END;

